﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPageAdmin.master" AutoEventWireup="true" CodeFile="NhanVienDanhSach.aspx.cs" Inherits="Admin_NhanVienDanhSach" Title="Untitled Page" %>
<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="menuPlaceHolder" Runat="Server">
<div class="sidebarmenu">
	<ul id="sidebarmenu1">
		<li><a href="NhanVienDanhSach.aspx">Nhân Viên</a>
			<ul>
			<li><a href="NhanVienDanhSach.aspx">Danh Sách Nhân Viên</a></li><li><a href="NhanVienThem.aspx">Thêm Nhân Viên</a></li></ul>
		</li>
		<li><a href="DoanhNghiepDanhSach.aspx">Doanh Nghiệp</a>
			<ul>
			<li><a href="DoanhNghiepDanhSach.aspx">Danh Sách Doanh Nghiệp</a></li><li><a href="DoanhNghiepThem.aspx">Thêm Doanh Nghiệp</a></li></ul>
		</li>
		<li><a href="KhachHangDanhSach.aspx">Khách Hàng</a>
			<ul>
			<li><a href="KhachHangDanhSach.aspx">Danh Sách Khách Hàng</a></li><li><a href="KhachHangThem.aspx">Thêm Khách Hàng</a></li></ul>
		</li>
</ul>
</div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
   <div style="padding:12px 12px 12px 12px;font-size: 10pt; font-family: Tahoma">
 <div>
       
        <div class="title" align="center" >
            <strong><i><span style="font-size: 14pt; color: #ff0000;">DANH SÁCH NHÂN VIÊN</span></i></strong></div>
        <div style="width:100%;">
            <div style="display:table-cell; width:70%;float:left;color: #ff0000;">
             <strong >   Tên nhân viên:
                <asp:TextBox ID="txt_tennv" runat="server" Width="77px"></asp:TextBox>
                Mã nhân viên:
                <asp:DropDownList ID="ddl_Manv" runat="server">
                </asp:DropDownList>
                Số Diện Thoại:</strong>
                <asp:DropDownList ID="ddl_sodienthoai" runat="server">
                </asp:DropDownList>
                &nbsp;
                <asp:Button ID="btn_Search" runat="server" Text="Tìm kiếm" OnClick="btn_Search_Click"  />
            </div>
            <div class="addnewrow" style="display:table-cell; width:25%;float:right;">
                 <a href="NhanVienThem.aspx" ><span style="color: red"><strong>Thêm nhân viên mới</strong></span></a> | 
                 <asp:LinkButton ID="lbt_Xoa" runat="server" OnClick="lbt_Xoa_Click" Font-Bold="True" ForeColor="Red">Xóa</asp:LinkButton>
            </div>           
        </div>
        <div>
        <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
            <HeaderTemplate>
                <table cellspacing="1" cellpadding="3" width="100%" bgcolor="#cccccc" border="1">
                <thead>
                    <tr class="listtableheader">
                        <th>Mã nhân viên</th>
                        <th>Tên nhân viên</th>
                        <th>Tài khoản</th>
                        <th>Số Điện Thoại</th>
                        <th>Sửa</th>
                        <th>
                            <input id="cb_All" type="checkbox" onclick="CheckAll(1);" />
                            <a href="javascript:CheckAll(2)">Chọn hết</a>
                        </th>
                    </tr>
                </thead>
                <tbody>
            </HeaderTemplate>
            <ItemTemplate>
              <tr>
                <td><%#Eval("MaNV") %></td>
                <td><asp:HyperLink ID="hyp_tennv" runat="server"></asp:HyperLink></td>
                <td><%#Eval("TaiKhoan") %></td>
                <td><%#Eval("DienThoai") %></td>
                <td><asp:HyperLink ID="hpl_Edit" Text="Edit" runat="server" /></td>
                <td>
                    <asp:CheckBox ID="cb_Xoa" runat="server" />
                    <asp:HiddenField ID="hf_id" Value='<%#Eval("MaNV") %>' runat="server" />
                </td>
              </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody>
            </table>   
            </FooterTemplate>
        </asp:Repeater>  
        </div>
        <div style="width:100%;"> 
            <div style="float:left;">               
            
            </div>
            <cc1:PagerV2_8 ID="Pager" runat="server" OnCommand="Pager_Command"/>
        </div>
 </div>
 </div>
</asp:Content>